<template>
    <div>
        <el-row style="margin: 20px 0" id="participateMeeting">
            <el-table :data="participateMeetData" border style="width: 100%">
                <el-table-column prop="name" label="姓名" width="180"> </el-table-column>
                <el-table-column prop="jobtitle" label="职称" width="170"> </el-table-column>
                <el-table-column prop="service" label="医院" width="190"> </el-table-column>
                <el-table-column prop="role" label="角色"> </el-table-column>
                <el-table-column prop="time" label="加入时间"> </el-table-column>
            </el-table>
        </el-row>
    </div>
</template>
<script>

export default {
    name: 'consultationParticipant',
    props: ['orders'],
    data() {
        return {
            //参与人员
            participateMeetData: [],
        }
    },
    computed: {
    },
    mounted() {
        this.getParticipant()
    },
    methods: {
        //获取参与人员
        getParticipant() {
            this.participateMeetData = []
            let mData = this.orders.patients[0].expertDiagnosis
            if (mData.length > 0) {
                mData.forEach(item => {
                    this.participateMeetData.push({
                        jobtitle: item.roleName,
                        name: item.expertName,
                        service: item.institutionName,
                        time: item.createTime,
                        role: item.roleName
                    })
                })
            }

        },
    }
}
</script>